import java.util.LinkedHashMap;

public class LinkedHashMapdemo {
    public static void main(String[] args) {
        //1.创建集合
        LinkedHashMap<Integer, String> map = new LinkedHashMap<Integer, String>();
        //2.添加集合
        map.put(1, "one");
        map.put(2, "two");
        map.put(3, "three");
        map.put(4, "four");
        map.put(3, "five");
        //3.打印集合
        System.out.println(map);
    }
}
